﻿using System;

namespace FishServe.Core.Services.UpdaterService.Common
{

	[Flags]
	public enum Result
	{
		None=0,
		FilePresent = 1, 
		FileHashPassed= 2,
		FileHaveDependencies= 4,
		FileAllDependenciesPresent=8
	}

	public static class MyExtensions
	{
		//Think about creating an extension method that does the Bit Flag opperation.
		public static bool ConstainsResult(this Result combined, Result checkagainst)
		{
			return ((combined & checkagainst) == checkagainst);
		}
	}
}
